package com.srwl.mytx.im.conversation;

import android.content.Context;
import android.content.Intent;
import android.util.Log;

import com.srwl.mytx.R;
import com.srwl.mytx.activity.ConversationActivity.TransferNotifyActivity;
import com.srwl.mytx.domain.ConversationData;
import com.srwl.mytx.domain.Message;
import com.srwl.mytx.im.MessageHandler;

public class WithdrawNotifyConversation extends SystemNotifyConversation {
    private static final String TAG = "TransferNotifyConversat";
    public WithdrawNotifyConversation(Context context,ConversationData data, MessageHandler messageHandler, MessageUnReadCountListener unReadCountListener) {
        super(context,data, messageHandler, unReadCountListener);
    }

    @Override
    public void receivedMessage(Message message) {
        Log.i(TAG, "receivedMessage: 收到提现相关信息");
        saveMessageAndRefreshView(message);
    }

    @Override
    public String getTitle() {
        return "提现通知";
    }

//    @Override
//    public int getIconResourceId() {
//        return ;
//    }

    @Override
    public String getContent() {
        return lastMessage.getContent();
    }


    @Override
    public void openConversation(Context context) {
        context.startActivity(new Intent(context, TransferNotifyActivity.class));
    }
}
